package com.Dubbo.consumer.eventnotify;

import java.util.HashMap;
import java.util.Map;

import com.Dubbo.api.eventNotify.entity.Person;

/**
 * 事件通知 实现类
 * @author alexgaoyh
 *
 */
public class NofifyImpl implements INofifyService{

	public Map<Integer, Person>    ret    = new HashMap<Integer, Person>();
	
    public Map<Integer, Throwable> errors = new HashMap<Integer, Throwable>();
    
    public void onReturn(Person msg, Integer id) {
    	
        System.out.println("onreturn:" + msg);
        ret.put(id, msg);
        
    }
    
    public void onThrow(Throwable ex, Integer id) {
    	
        errors.put(id, ex);
        
    }
    
}
